package stool.facadepattern;

/**
 * @Author Felix YF Dong
 * @Date 2021/5/6
 */
public class Fund {

    private Stock1 stock1;

    private Stock2 stock2;

    private Realty1 realty1;

    private NationalDebt1 nationalDebt1;

    public Fund() {

        stock1 = new Stock1();
        stock2 = new Stock2();
        realty1 = new Realty1();
        nationalDebt1 = new NationalDebt1();
    }

    public void buyFund() {

        stock1.buy();
        stock2.buy();
        realty1.buy();
        nationalDebt1.buy();
    }

    public void sellFund() {

        stock1.sell();
        stock2.sell();
        realty1.sell();
        nationalDebt1.sell();
    }
}
